FROM python:3.9.6-slim

LABEL maintainer="fastposter@163.com"
LABEL version="2.0.20"

COPY server/ /app/
#COPY design/dist/ /app/static/

WORKDIR /app
RUN pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple

EXPOSE 7780

ENV POSTER_URI_PREFIX http://127.0.0.1:7780/
ENV POSTER_DEBUG false
ENV FASTPOSTER_IN_DOCKER true
ENV FASTPOSTER_PROFILE dev

ENTRYPOINT python -u fast.py
